/*
 * admin: 静态路由权限详情
 * */
export const AllRoutesData: any = [
  {
    path: "/divided",
    component: "Layout", //路由组件
    redirect: "/divided",
    name: "/divided",
    // 嵌套路由组件
    meta: {
      title: "分成管理",
      icon: "system",
      hidden: false,
      roles: ["GUEST", "ADMIN", "ADMIN6"],
    },
    children: [
      {
        path: "order",
        component: "divided/order/orderList",
        name: "Order",
        meta: {
          title: "分成结算订单",
          icon: "user",
          hidden: false,
          roles: ["ADMIN", "GUEST"],
          keepAlive: true,
        },
      },
      {
        path: "daily",
        component: "divided/order/dailyReport",
        name: "Daily",
        meta: {
          title: "每日结算",
          icon: "menu",
          hidden: false,
          roles: ["ADMIN", "ADMIN6", "GUEST"],
          keepAlive: true,
        },
      },
    ],
  },
  {
    path: "/system",
    component: "Layout",
    redirect: "/system/user",
    name: "/system",
    meta: {
      title: "系统管理",
      icon: "system",
      hidden: false,
      roles: ["GUEST", "ADMIN", "ADMIN6"],
    },
    children: [
      {
        path: "user",
        component: "system/user/index",
        name: "User",
        meta: {
          title: "用户管理",
          icon: "user",
          hidden: false,
          roles: ["ADMIN", "GUEST"],
          keepAlive: true,
        },
      },
      {
        path: "role",
        component: "system/role/index",
        name: "Role",
        meta: {
          title: "角色管理",
          icon: "role",
          hidden: false,
          roles: ["ADMIN", "ADMIN6", "GUEST"],
          keepAlive: true,
        },
      },
      {
        path: "menu",
        component: "system/menu/index",
        name: "Menu",
        meta: {
          title: "菜单管理",
          icon: "menu",
          hidden: false,
          roles: ["ADMIN"],
          keepAlive: true,
        },
      },
      {
        path: "dept",
        component: "system/dept/index",
        name: "Dept",
        meta: {
          title: "部门管理",
          icon: "tree",
          hidden: false,
          roles: ["ADMIN"],
          keepAlive: true,
        },
      },
      {
        path: "dict",
        component: "system/dict/index",
        name: "Dict",
        meta: {
          title: "字典管理",
          icon: "dict",
          hidden: false,
          roles: ["ADMIN"],
          keepAlive: true,
        },
      },
    ],
  },
  {
    path: "/api",
    component: "Layout",
    name: "/api",
    meta: {
      title: "接口文档",
      icon: "api",
      hidden: false,
      roles: ["ADMIN"],
      alwaysShow: true,
    },
    children: [
      {
        path: "apifox",
        component: "demo/api/apifox",
        name: "Apifox",
        meta: {
          title: "Apifox",
          icon: "api",
          hidden: false,
          roles: ["ADMIN"],
          keepAlive: true,
        },
      },
      {
        path: "swagger",
        component: "demo/api/swagger",
        name: "Swagger",
        meta: {
          title: "Swagger",
          icon: "api",
          hidden: true,
          roles: ["ADMIN"],
          keepAlive: true,
        },
      },
      {
        path: "knife4j",
        component: "demo/api/knife4j",
        name: "Knife4j",
        meta: {
          title: "Knife4j",
          icon: "api",
          hidden: true,
          roles: ["ADMIN"],
          keepAlive: true,
        },
      },
    ],
  },
  {
    path: "/doc",
    component: "Layout",
    name: "/doc",
    meta: {
      title: "平台文档",
      icon: "document",
      hidden: false,
      roles: ["ADMIN"],
    },
    children: [
      {
        path: "internal-doc",
        component: "demo/internal-doc",
        name: "InternalDoc",
        meta: {
          title: "平台文档(内嵌)",
          icon: "document",
          hidden: false,
          roles: ["ADMIN"],
        },
      },
      {
        path: "https://juejin.cn/post/7228990409909108793",
        name: "Https://juejin.cn/post/7228990409909108793",
        meta: {
          title: "平台文档(外链)",
          icon: "link",
          hidden: false,
          roles: ["ADMIN"],
        },
      },
    ],
  },
  {
    path: "/multi-level",
    component: "Layout",
    redirect: "/multi-level/multi-level1",
    name: "/multiLevel",
    meta: {
      title: "多级菜单",
      icon: "cascader",
      hidden: false,
      roles: ["ADMIN"],
    },
    children: [
      {
        path: "multi-level1",
        component: "demo/multi-level/level1",
        redirect: "/multi-level/multi-level2",
        name: "MultiLevel1",
        meta: {
          title: "菜单一级",
          icon: "",
          hidden: false,
          roles: ["ADMIN"],
          keepAlive: true,
        },
        children: [
          {
            path: "multi-level2",
            component: "demo/multi-level/children/level2",
            redirect: "/multi-level/multi-level2/multi-level3-1",
            name: "MultiLevel2",
            meta: {
              title: "菜单二级",
              icon: "",
              hidden: false,
              roles: ["ADMIN"],
              keepAlive: true,
            },
            children: [
              {
                path: "multi-level3-1",
                component: "demo/multi-level/children/children/level3-1",
                name: "MultiLevel31",
                meta: {
                  title: "菜单三级-1",
                  icon: "",
                  hidden: false,
                  roles: ["ADMIN"],
                  keepAlive: true,
                },
              },
              {
                path: "multi-level3-2",
                component: "demo/multi-level/children/children/level3-2",
                name: "MultiLevel32",
                meta: {
                  title: "菜单三级-2",
                  icon: "",
                  hidden: false,
                  roles: ["ADMIN"],
                  keepAlive: true,
                },
              },
            ],
          },
        ],
      },
    ],
  },
  {
    path: "/component",
    component: "Layout",
    name: "/component",
    meta: {
      title: "组件封装",
      icon: "menu",
      hidden: false,
      roles: ["ADMIN"],
    },
    children: [
      {
        path: "wang-editor",
        component: "demo/wang-editor",
        name: "WangEditor",
        meta: {
          title: "富文本编辑器",
          icon: "",
          hidden: false,
          roles: ["ADMIN"],
          keepAlive: true,
        },
      },
      {
        path: "upload",
        component: "demo/upload",
        name: "Upload",
        meta: {
          title: "图片上传",
          icon: "",
          hidden: false,
          roles: ["ADMIN"],
          keepAlive: true,
        },
      },
      {
        path: "icon-selector",
        component: "demo/icon-selector",
        name: "IconSelector",
        meta: {
          title: "图标选择器",
          icon: "",
          hidden: false,
          roles: ["ADMIN"],
          keepAlive: true,
        },
      },
      {
        path: "dict-demo",
        component: "demo/dict",
        name: "DictDemo",
        meta: {
          title: "字典组件",
          icon: "",
          hidden: false,
          roles: ["ADMIN"],
          keepAlive: true,
        },
      },
      {
        path: "signature",
        component: "demo/signature",
        name: "Signature",
        meta: {
          title: "签名",
          icon: "",
          hidden: false,
          roles: ["ADMIN"],
          keepAlive: true,
        },
      },
      {
        path: "table",
        component: "demo/table",
        name: "Table",
        meta: {
          title: "表格",
          icon: "",
          hidden: false,
          roles: ["ADMIN"],
          keepAlive: true,
        },
      },
    ],
  },
  {
    path: "/function",
    component: "Layout",
    name: "/function",
    meta: {
      title: "功能演示",
      icon: "menu",
      hidden: false,
      roles: ["ADMIN"],
    },
    children: [
      {
        path: "icon-demo",
        component: "demo/icons",
        name: "IconDemo",
        meta: {
          title: "Icons",
          icon: "el-icon-Notification",
          hidden: false,
          roles: ["ADMIN"],
          keepAlive: true,
        },
      },
      {
        path: "/function/websocket",
        component: "demo/websocket",
        name: "/function/websocket",
        meta: {
          title: "Websocket",
          icon: "",
          hidden: false,
          roles: ["ADMIN"],
          keepAlive: true,
        },
      },
      {
        path: "other",
        component: "demo/other",
        name: "Other",
        meta: {
          title: "敬请期待...",
          icon: "",
          hidden: false,
          roles: ["ADMIN"],
        },
      },
    ],
  },
];
/*
 * 静态Admin权限,admin基本信息实例化的数据
 * */
export const userTestData: any = {
  userId: 2,
  nickname: "系统管理员",
  avatar:
    "https://oss.youlai.tech/youlai-boot/2023/05/16/811270ef31f548af9cffc026dfc3777b.gif",
  roles: ["ADMIN"],
  perms: [
    "sys:menu:delete",
    "sys:dept:edit",
    "sys:dict_type:add",
    "sys:dict:edit",
    "sys:dict:delete",
    "sys:dict_type:edit",
    "sys:menu:add",
    "sys:user:add",
    "sys:role:edit",
    "sys:dept:delete",
    "sys:user:edit",
    "sys:user:delete",
    "sys:user:reset_pwd",
    "sys:dept:add",
    "sys:role:delete",
    "sys:dict_type:delete",
    "sys:menu:edit",
    "sys:dict:add",
    "sys:role:add",
  ],
};
